package com.shishuo.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.CashEntity;
@Repository
public interface CashDao extends IBaseDAO<CashEntity, Long>
{
	public List<CashEntity> getAllList(@Param("offset") long offset,
			@Param("rows") long rows,@Param("userId") long userId) throws DataAccessException;
	public int getAllListCount(@Param("userId") long userId) throws DataAccessException;
	public List<CashEntity> getAllListByPassUserId(@Param("offset") int offset,@Param("rows") int rows,
			@Param("passUserId") long passUserId);
	public long getAllListCountByPassUserId(@Param("passUserId") long passUserId);
}
